package com.softtek.ibeacon.web.sys;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.softtek.ibeacon.entity.Storeinfo;
import com.softtek.ibeacon.service.sys.StoreService;
import com.softtek.ibeacon.web.BaseController;
import com.softtek.ibeacon.web.util.MV;

@Controller
@RequestMapping("/sys/store")
public class StoreController extends BaseController {

	
	@Autowired
	private StoreService storeService;

	@ResponseBody
	@RequestMapping("/getall")
	public Map<String,List<Storeinfo>> getAllStore(){
		
		MV mv=new MV();
		System.out.println("aaaaaaa");
		return storeService.getStoreList(0,5);
		
	}
	

}
